.class public Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;
.super Ljava/lang/Object;
.source "TrackDialogs.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;
    }
.end annotation


# instance fields
.field private dialog:Landroid/app/ProgressDialog;

.field onEndedListener:Llt/noframe/gpsfarmguide/utils/AsyncCallable$OnEndedListener;


# direct methods
.method public constructor <init>()V
    .locals 1

    .line 40
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 44
    new-instance v0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$1;

    invoke-direct {v0, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$1;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->onEndedListener:Llt/noframe/gpsfarmguide/utils/AsyncCallable$OnEndedListener;

    return-void
.end method

.method static synthetic access$000(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 0

    .line 40
    invoke-direct {p0, p1}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->makeFileSaveTrack(Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    return-void
.end method

.method private makeFileSaveTrack(Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 3

    .line 386
    new-instance v0, Llt/noframe/gpsfarmguide/models/MeasuringModel;

    new-instance v1, Llt/noframe/gpsfarmguide/models/LineModel;

    invoke-direct {v1}, Llt/noframe/gpsfarmguide/models/LineModel;-><init>()V

    const/4 v2, 0x1

    invoke-direct {v0, v1, v2}, Llt/noframe/gpsfarmguide/models/MeasuringModel;-><init>(Llt/noframe/gpsfarmguide/interfaces/Shape;I)V

    .line 387
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getCoordinates()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/models/AbstractMeasuringModel;->setPoints(Ljava/util/List;)V

    .line 388
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Llt/noframe/gpsfarmguide/models/MeasuringModel;->setName(Ljava/lang/String;)V

    .line 390
    invoke-static {}, Llt/noframe/gpsfarmguide/database/DB;->getDB()Llt/noframe/gpsfarmguide/database/DB;

    move-result-object v1

    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getField_id()I

    move-result p1

    invoke-virtual {v1, p1}, Llt/noframe/gpsfarmguide/database/DB;->getArea(I)Llt/noframe/gpsfarmguide/models/MeasuringModel;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 393
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 394
    invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 395
    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 396
    invoke-static {v1}, Llt/noframe/gpsfarmguide/share/Share;->makeShare(Ljava/util/List;)V

    goto :goto_0

    .line 398
    :cond_0
    invoke-static {v0}, Llt/noframe/gpsfarmguide/share/Share;->makeShare(Llt/noframe/gpsfarmguide/models/MeasuringModel;)V

    :goto_0
    return-void
.end method


# virtual methods
.method public asyncSaveTrack(Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 2

    const v0, 0x7f110187

    .line 124
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {p0, p1, v1, v0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->showProgressBar(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 125
    new-instance p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$4;

    invoke-direct {p1, p0, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$4;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    .line 131
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->onEndedListener:Llt/noframe/gpsfarmguide/utils/AsyncCallable$OnEndedListener;

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/utils/AsyncCallable;->addOnEndedListener(Llt/noframe/gpsfarmguide/utils/AsyncCallable$OnEndedListener;)V

    .line 132
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/utils/AsyncCallable;->call()V

    return-void
.end method

.method public asyncUpdateTrack(Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 2

    const v0, 0x7f110187

    .line 143
    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    invoke-virtual {p0, p1, v1, v0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->showProgressBar(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 144
    new-instance p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$5;

    invoke-direct {p1, p0, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$5;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    .line 150
    iget-object p2, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->onEndedListener:Llt/noframe/gpsfarmguide/utils/AsyncCallable$OnEndedListener;

    invoke-virtual {p1, p2}, Llt/noframe/gpsfarmguide/utils/AsyncCallable;->addOnEndedListener(Llt/noframe/gpsfarmguide/utils/AsyncCallable$OnEndedListener;)V

    .line 151
    invoke-virtual {p1}, Llt/noframe/gpsfarmguide/utils/AsyncCallable;->call()V

    return-void
.end method

.method public chooseAction(Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;Llt/noframe/gpsfarmguide/views/FragmentTracksList;)V
    .locals 8

    .line 317
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 318
    new-instance v4, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v4, v1}, Llt/noframe/gpsfarmguide/analytics/FireAnalytics;-><init>(Landroid/content/Context;)V

    .line 319
    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    const v2, 0x7f11005d

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    const/4 v1, 0x1

    .line 320
    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 321
    new-instance v1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;

    move-object v2, v1

    move-object v3, p0

    move-object v5, p2

    move-object v6, p1

    move-object v7, p3

    invoke-direct/range {v2 .. v7}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$13;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Llt/noframe/gpsfarmguide/analytics/FireAnalytics;Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$ActionCallback;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Llt/noframe/gpsfarmguide/views/FragmentTracksList;)V

    const p1, 0x7f03000b

    invoke-virtual {v0, p1, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setItems(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 380
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;

    move-result-object p1

    .line 381
    invoke-virtual {p1}, Landroid/app/Dialog;->show()V

    return-void
.end method

.method public deleteTrack(Landroid/content/DialogInterface$OnClickListener;)V
    .locals 2

    .line 204
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f1100a4

    .line 205
    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(I)Landroidx/appcompat/app/AlertDialog$Builder;

    const/4 v1, 0x1

    .line 206
    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f11022d

    .line 207
    invoke-virtual {v0, v1, p1}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    new-instance p1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$9;

    invoke-direct {p1, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$9;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;)V

    const v1, 0x7f110155

    .line 208
    invoke-virtual {v0, v1, p1}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 213
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;

    return-void
.end method

.method public deleteTracks(Ljava/util/List;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .line 220
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 221
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {}, Llt/noframe/gpsfarmguide/App;->getContext()Landroid/content/Context;

    move-result-object v2

    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result v3

    const/4 v4, 0x1

    if-le v3, v4, :cond_0

    const v3, 0x7f1100a5

    goto :goto_0

    :cond_0
    const v3, 0x7f1100a3

    :goto_0
    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "?"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 222
    invoke-virtual {v0, v4}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f11022d

    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$11;

    invoke-direct {v2, p0, p1}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$11;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Ljava/util/List;)V

    .line 223
    invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    const p1, 0x7f110155

    new-instance v1, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$10;

    invoke-direct {v1, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$10;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;)V

    .line 237
    invoke-virtual {v0, p1, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 242
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->show()Landroidx/appcompat/app/AlertDialog;

    return-void
.end method

.method public dismissProgressBar()V
    .locals 1

    .line 66
    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->dialog:Landroid/app/ProgressDialog;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->isShowing()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 67
    iget-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->dismiss()V

    :cond_0
    return-void
.end method

.method public editTrackName(Llt/noframe/gpsfarmguide/views/FragmentTracksList;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 9

    .line 412
    new-instance v3, Llt/noframe/gpsfarmguide/utils/Validator;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {v3, v0}, Llt/noframe/gpsfarmguide/utils/Validator;-><init>(Landroid/content/Context;)V

    .line 413
    new-instance v2, Landroid/widget/EditText;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {v2, v0}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    .line 414
    invoke-virtual {p2}, Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    .line 415
    new-instance v6, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {v6, v0}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 416
    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f1100bf

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 417
    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f1101ec

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v6, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    const/4 v0, 0x0

    .line 418
    invoke-virtual {v6, v0}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 419
    invoke-virtual {v6, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 420
    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object v0

    const v1, 0x7f110174

    invoke-virtual {v0, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v7

    new-instance v8, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$15;

    move-object v0, v8

    move-object v1, p0

    move-object v4, p2

    move-object v5, p1

    invoke-direct/range {v0 .. v5}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$15;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Landroid/widget/EditText;Llt/noframe/gpsfarmguide/utils/Validator;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Llt/noframe/gpsfarmguide/views/FragmentTracksList;)V

    invoke-virtual {v6, v7, v8}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 433
    invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;

    move-result-object p1

    const p2, 0x7f11004f

    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$14;

    invoke-direct {p2, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$14;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;)V

    invoke-virtual {v6, p1, p2}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 438
    invoke-virtual {v6}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;

    move-result-object p1

    .line 440
    invoke-virtual {p1}, Landroid/app/Dialog;->show()V

    return-void
.end method

.method public overriteTrack(Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 3

    .line 167
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-direct {v0, p1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f110052

    .line 168
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    const/4 v1, 0x0

    .line 169
    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f1101a2

    .line 171
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$8;

    invoke-direct {v2, p0, p1, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$8;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f11009b

    .line 179
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$7;

    invoke-direct {v2, p0, p1, p2}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$7;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V

    invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    const p2, 0x7f11004f

    .line 186
    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p1

    new-instance p2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$6;

    invoke-direct {p2, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$6;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;)V

    invoke-virtual {v0, p1, p2}, Landroidx/appcompat/app/AlertDialog$Builder;->setNeutralButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 190
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;

    move-result-object p1

    .line 191
    invoke-virtual {p1}, Landroid/app/Dialog;->show()V

    return-void
.end method

.method public saveTrack(Landroid/content/Context;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;)V
    .locals 9

    .line 77
    new-instance v4, Llt/noframe/gpsfarmguide/utils/Validator;

    invoke-direct {v4, p1}, Llt/noframe/gpsfarmguide/utils/Validator;-><init>(Landroid/content/Context;)V

    .line 78
    new-instance v3, Landroid/widget/EditText;

    invoke-direct {v3, p1}, Landroid/widget/EditText;-><init>(Landroid/content/Context;)V

    .line 79
    new-instance v0, Landroidx/appcompat/app/AlertDialog$Builder;

    invoke-direct {v0, p1}, Landroidx/appcompat/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f1101eb

    .line 80
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f1101ec

    .line 81
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroidx/appcompat/app/AlertDialog$Builder;

    const/4 v1, 0x0

    .line 82
    invoke-virtual {v0, v1}, Landroidx/appcompat/app/AlertDialog$Builder;->setCancelable(Z)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 83
    invoke-virtual {v0, v3}, Landroidx/appcompat/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f110174

    .line 84
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    const v1, 0x7f11004f

    .line 85
    invoke-virtual {p1, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-instance v2, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$2;

    invoke-direct {v2, p0}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$2;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;)V

    invoke-virtual {v0, v1, v2}, Landroidx/appcompat/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroidx/appcompat/app/AlertDialog$Builder;

    .line 89
    invoke-virtual {v0}, Landroidx/appcompat/app/AlertDialog$Builder;->create()Landroidx/appcompat/app/AlertDialog;

    move-result-object v7

    .line 92
    new-instance v8, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;

    move-object v0, v8

    move-object v1, p0

    move-object v2, v7

    move-object v5, p2

    move-object v6, p1

    invoke-direct/range {v0 .. v6}, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs$3;-><init>(Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;Landroidx/appcompat/app/AlertDialog;Landroid/widget/EditText;Llt/noframe/gpsfarmguide/utils/Validator;Llt/noframe/gpsfarmguide/sprayer/track/ModelTrack;Landroid/content/Context;)V

    invoke-virtual {v7, v8}, Landroid/app/Dialog;->setOnShowListener(Landroid/content/DialogInterface$OnShowListener;)V

    .line 113
    invoke-virtual {v7}, Landroid/app/Dialog;->show()V

    return-void
.end method

.method public showProgressBar(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V
    .locals 1

    .line 54
    new-instance v0, Landroid/app/ProgressDialog;

    invoke-direct {v0, p1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->dialog:Landroid/app/ProgressDialog;

    if-eqz p2, :cond_0

    .line 57
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {p1, p2}, Landroid/app/ProgressDialog;->setTitle(Ljava/lang/CharSequence;)V

    :cond_0
    if-eqz p3, :cond_1

    .line 60
    iget-object p1, p0, Llt/noframe/gpsfarmguide/dialogs/TrackDialogs;->dialog:Landroid/app/ProgressDialog;

    invoke-virtual {p1, p3}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    :cond_1
    return-void
.end method
